﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="UpdateStockFromSupplier1.aspx.cs" Inherits="PresentationLayer.View.WebForm6" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">



        .style11
        {
            width: 15px;
        }
        .style15
        {
            width: 139px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%">
    <tr>
        <td style="height:auto;width:200px; vertical-align:top;">
            <uc1:mainMenu ID="mainMenu1" runat="server" />
        </td>
        <td>

    <div>
        <center>
            <b>
            <h2>
                <u>Update Stock From Supplier</u></h2>
            </b>
        </center>
        <br />
        <table>
            <tr>
                <td>
                    Supplier Name:</td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style15">
                    &nbsp;<asp:DropDownList 
                        ID="ddSupplier" runat="server" Height="25px" Width="131px" AutoPostBack="True" 
                        onselectedindexchanged="ddSupplier_SelectedIndexChanged" 
                        AppendDataBoundItems="True">
                        <asp:ListItem Value="0">----Select Company----</asp:ListItem>
                    </asp:DropDownList>
                </td>              
            </tr>
            <tr>
             <td colspan="2">Supplier Name:</td><td><asp:Label ID="lblSupplier" runat="server"></asp:Label></td>
             <td></td>
            </tr>
            <caption>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </caption>
        </table>
        <table>
        <tr><td>
            <asp:Label ID="lblMes" runat="server" 
                Text="There is no update stock for this supplier." Visible="False" 
                Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>
                </td></tr>
            <tr>             
                <td>
                    <asp:GridView ID="foo" runat="server" AllowPaging="True" 
                        autogeneratecolumns="False" CellPadding="4" 
                        ForeColor="#333333" GridLines="None" Width="445px" 
                        onrowcommand="foo_RowCommand">
                        <AlternatingRowStyle BackColor="White" />
                        <columns>
                            <asp:boundfield datafield="PONo" headertext="Purchase Order Number" />
                            <asp:boundfield datafield="OrderedOn" HeaderText="Order Date" />
                            <asp:TemplateField>
                            <ItemTemplate>
                            <asp:LinkButton runat="server" ID="update" CommandName="update" CommandArgument='<%# Eval("PONo") %>'>Update Stock</asp:LinkButton>
                            </ItemTemplate>
                            </asp:TemplateField>
                        </columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <EmptyDataTemplate>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                        </EmptyDataTemplate>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
 </td></tr></table>
</asp:Content>
